import { createSlice } from "@reduxjs/toolkit";


export const publishArticle=createSlice({
  name:"publishArticle",
  initialState:{
    openFlag:false,
  },
  reducers:{
    setOpen:(state,action)=>{
      console.log('4444');
      state.openFlag=action.payload
      console.log('333',state.openFlag);
    },
   
  }
})


export const {setOpen} =publishArticle.actions

export default publishArticle.reducer